const {products} =require('./mock');
module.exports={
    devServer:{
        before(app){
            app.get('/api/products',(req,res)=>{
              console.log('req.query',req.query);
               res.json({
                   code:0,
                   data:products
               })
            })
        }
    }
}